<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/com/include/declare.jspf" %>
<%-- 
    JSP Name : estimation_carList.jsp
    Description : 차량목록
    author SJYoon
    since 2012. 6. 25.
    version 1.0
    Modification Information
       since          author              description
    ===========    =============    ===========================
    2012. 6. 25.     SJYoon     최초 생성
--%>
                                <c:set var="t" scope="page" value="1"></c:set>
                                <c:set var="size" scope="page" value="${fn:length(carList) }" />
                                
                                <c:if test="${size != 0 }" >
                                <c:forEach var="j" begin="0" end="${size }"  varStatus="status" >

                                    <c:if test="${t % 5 == 1 }">
                                    <div class="section"></c:if>
                                        
                                        <c:if test="${not empty carList[j].carcode }">
                                        <div id="carSection<c:out value="${carList[j].carcode }"/><c:out value="${j }"/>"><!-- class="on"  -->
                                            <c:if test="${not empty carList[j].filPathNm}">
                                            <img src="/kr/file/imagePathView.do?nrFilNm=trcarimage/<c:out value="${carList[j].filPathNm}"/>" alt="차량 이미지" onclick="selectCar('<c:out value="${carList[j].carcode}"/>','<c:out value="${carList[j].carname}"/>','carSection<c:out value="${carList[j].carcode }"/><c:out value="${j}"/>' , '<c:out value="${carList[j].partYn }"/>' );selectImg('<c:out value="${carList[j].filPathNm}"/>');" style="cursor:pointer;" width="90px" height="55px"/>
                                            </c:if>
                                            <c:if test="${empty carList[j].filPathNm}">
                                            <img src="/kr/temp/@car_90x55.jpg" alt="차량 이미지" onclick="selectCar('<c:out value="${carList[j].carcode}"/>','<c:out value="${carList[j].carname}"/>' ,'carSection<c:out value="${carList[j].carcode }"/><c:out value="${j}"/>' );selectImg('<c:out value="${carList[j].filPathNm}"/>');" style="cursor:pointer;" width="90px" height="55px"/>
                                            </c:if>
                                            <p class="name"><c:out value="${carList[j].carname}"/></p>
                                            <c:if test="${j == 0 }">
                                                <script type="text/javascript" >
                                                    selectCar('<c:out value="${carList[j].carcode}"/>','<c:out value="${carList[j].carname}"/>' );
                                                    selectImg('<c:out value="${carList[j].filPathNm}"/>' );
                                                </script>
                                            </c:if>
                                        </div>
                                        </c:if>
                                        
                                        
                                <c:if test="${t % 5 == 0 || j == size }">
                                </div></c:if>
                                
                            <c:set var="t" scope="page" value="${t+1 }"></c:set>
                            </c:forEach>
                            </c:if>
                            
                            <c:if test="${size == 0 }" >
                                <div class="section">
                                            차량이 없습니다.
                                </div>
                            </c:if>
                                    